/*
 * Filename TestStripPriceProfitSchemeServiceImpl.java 2022年03月24日
 * Copyright © Ehome Co.Ltd. All Rgiths Reserved.
 * @author wuyingchao
 */
package com.ehome.poct.core.service.order;

import com.ehome.core.service.AbstractCrudServiceImpl;
import com.ehome.poct.core.api.dto.check.gold.TestConfPoctStripTypeDTO;
import com.ehome.poct.core.api.dto.order.TestStripPriceProfitDTO;
import com.ehome.poct.core.api.virtual.TestStripPriceProfitService;
import com.ehome.poct.core.repository.order.TestStripPriceProfitRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wyc
 * @since 2022/03/24 15:44
 **/
@Service
@AllArgsConstructor
public class TestStripPriceProfitServiceImpl extends AbstractCrudServiceImpl<TestStripPriceProfitDTO> implements TestStripPriceProfitService {
    private final TestStripPriceProfitRepository testStripPriceProfitRepository;

    @Override
    public List<TestConfPoctStripTypeDTO> getDetections(){
        return testStripPriceProfitRepository.getDetections();
    }

    @Override
    public void deleteProfitById(Long profitSchemeId) {
        testStripPriceProfitRepository.deleteProfitById(profitSchemeId);
    }
}